/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  LogReadService.java                                      
 *  File Contents Outline :  读取日志服务接口  
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package cn.edu.thu.log.web.service;

import cn.edu.thu.log.read.LogBuffer;
import java.io.File;
import java.util.ArrayList;


public interface LogReadService {
	public ArrayList<LogBuffer> addLog(File file);

	/**
	 * function to read the log
	 * 
	 * @param file
	 *            file/Directory
	 * @param command
	 *            command
	 * @return
	 */
//	public ArrayList<LogBuffer> readLog(File file, testUI logUI);

	public ArrayList<LogBuffer> searchLog(String searchKey, ArrayList<LogBuffer> logList);

	/**
	 * 
	 * @param product
	 *            name of product ,like image,imageclick
	 * @return logTags of product
	 */
	//public ArrayList<String> getLogTagsByProducts(ArrayList<String> productList);
}
